<div class="wrapper">
    <div>
        <div class="box box-top">
            <!-- /.box-header -->
            <!-- form start -->
            <form id="dataDicTypeForm" role="form" action="${base}/admin/chongdian/save" method="post">
                <input type="hidden" name="id" value="${(dataDicType.id)!}">
                <div class="box-body">

                            <div class="form-group">
                                <label for="name">电池批次</label>
                                <input type="text" value="${(dataDicType.name)!}" class="form-control" name="name" id="name">
                            </div>

                            <div class="form-group">
                                <label for="">充电策略</label>
                                <select  name="valid" id="" class="form-control">
                                    <option value="true" >----90%满冲----</option>
                                    <option value="false">----80%满冲----</option>
                                    <option value="false">----70%满冲----</option>
                                </select>
                            </div>
                            <div class="form-group">
                                <label for="code">创建时间</label>
                                <input type="text" value="${(dataDicType.code)!}" class="form-control" name="code" id="code">
                            </div>

                            <div class="form-group">
                                <label for="value">Valid</label>
                                <input type="text" value="${(dataDicType.value)!}" class="form-control" name="value" id="value">
                            </div>



                    <div class="box-footer">
                        <button type="button" onclick="$('#dataDicTypeForm').submit();" class="btn btn-primary">Save
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function() {
        $("#dataDicTypeForm").validate({
            submitHandler:function(form){
                submitDataDicType();
            }
        });
    });
    function submitDataDicType(){
        HF.ajaxFormSubmit('dataDicTypeForm',function(result){
            alert("Save Success");
            document.location.reload();
        },function(e){ alert("Save Failure");});
    }
</script>
